import request from '@/utils/request'

const api_name = `/api/user`

export default {
    // login(userInfo) {
    //     return request({
    //         url: `${api_name}/login`,
    //         method: `post`,
    //         data: userInfo
    //     })
    // }
    //手机登录接口 后续改为Email
    login(userInfo) {
        return request({
            url: `${api_name}/loginEmail`,
            method: `post`,
            data: userInfo
        })
    },
    //用户认证
    saveUserAuah(userAuth) {
        return request({
        url: `${api_name}/auth/userAuth`,
        method: 'post',
        data: userAuth
      })
    },
    //获取用户信息接口
    getUserInfo() {
        return request({
        url: `${api_name}/auth/getUserInfo`,
        method: `get` 
    })
   },	

}
